package com.example.demo.service;

import com.example.demo.entity.User;

import java.util.List;

public interface UserService {
     User addUser(User user);

     List<User> searchByExample(int page,int limit,User example);

     int searchByExampleCount(User example);

     int updateByPrimaryKey(User example);

     int deleteByPrimaryKey(int id);

     User login(String username,String password);
}
